<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<html>
<head>
	<title></title>
    <%@ include file="/WEB-INF/jsp/public/common.jspf" %>
	<script language="javascript" src="${pageContext.request.contextPath}/script/jquery_treeview/jquery.treeview.js"></script>
	<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/style/blue/file.css" />
	<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/script/jquery_treeview/jquery.treeview.css" />
</head>
<body>

<!-- 标题显示 -->
<div id="Title_bar">
    <div id="Title_bar_Head">
        <div id="Title_Head"></div>
        <div id="Title"><!--页面标题-->
            <img border="0" width="13" height="13" src="${pageContext.request.contextPath}/style/images/title_arrow.gif"/> 部门管理
        </div>
        <div id="Title_End"></div>
    </div>
</div>

<!--显示表单内容-->
<div id=MainArea>

 
    	<s:hidden name="id"></s:hidden>
    
        <div class="ItemBlock_Title1"><!-- 信息说明 --><div class="ItemBlock_Title1">
        	<img border="0" width="4" height="7" src="${pageContext.request.contextPath}/style/blue/images/item_point.gif" />部门列表</div> 
        </div>
        
        <!-- 表单内容显示 -->
        <div class="ItemBlockBorder">
            <div class="ItemBlock">
                <table cellpadding="0" cellspacing="0" class="mainForm">
					<!--表头-->
			
                   
			   		<!--显示数据列表-->
					<tbody id="TableData">
						
<ul id="tree">
<s:iterator value="#departmentList">
	<li>
		<span>${name}
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<s:a action="department_delete?id=%{id}" onclick="return window.confirm('您确定要删除吗')">删除</s:a>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<s:a action="department_editUI?id=%{id}" >修改</s:a></span>
    </tr>
		<ul>
		<s:iterator value="children">
			<li>
				<span>${name}
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<s:a action="department_delete?id=%{id}" onclick="return window.confirm('您确定要删除吗')">删除</s:a>
		        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<s:a action="department_editUI?id=%{id}" >修改</s:a></span>			
			</li>		
		</s:iterator>
		</ul>
	</li>
</s:iterator>
</ul>


							
						
					</tbody>
                </table>
            </div>
        </div>
        
        <script language="javascript">
        	$("#tree").treeview();
        </script>
        
        <!-- 表单操作 -->
        <div id="InputDetailBar">
             <s:a action="department_addUI"><img src="${pageContext.request.contextPath}/style/images/createNew.png" /></s:a>
        </div>

</div>

<div class="Description">
	说明：<br />
	1，部门最多显示两级<br/>
</div>
</body>
</html>